package com.winchain.chainbill.bill.base.service.impl;

import com.shell.bee.persistence.service.impl.PersistentServiceImpl;
import com.winchain.chainbill.bill.base.dao.CbOptDao;
import com.winchain.chainbill.bill.base.po.CbOpt;
import com.winchain.chainbill.bill.base.service.CbOptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("cbOptService")
public class CbOptServiceImpl extends PersistentServiceImpl<CbOpt> implements CbOptService {
	@Autowired
	private CbOptDao cbOperationDao;

	public CbOpt getByBillIdAndSeqNo(String billId, int optSeq) {
		CbOpt opt = new CbOpt();
		opt.setBillId(billId);
		opt.setOptSeq(Integer.valueOf(optSeq));

		return (CbOpt) this.cbOperationDao.selectOne(opt);
	}
}
